//
//  ViewController.m
//  ZSCircleChartView_master
//
//  Created by safiri on 2018/9/18.
//  Copyright © 2018年 safiri. All rights reserved.
//

#import "ViewController.h"
#import "ZSCircleChartView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    CGFloat side = 110;
    CGFloat x = (self.view.frame.size.width - side)/2;
    ZSCircleChartView *circle = [[ZSCircleChartView alloc] initWithFrame:CGRectMake(x, x, side, side) withMaxValue:12 value:8 lineWidth:7];
    circle.lineCapStyle = LineCapRound;
    circle.insideCircleColor = [UIColor lightGrayColor];
    circle.singleColor = [UIColor greenColor];
    [self.view addSubview:circle];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
